// 自定义表单
const {DataTypes, db } = require("../db");
db.define('formCustV5', {
id: {type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true,comment:'表自增ID'},
page:{type: DataTypes.STRING(100),defaultValue:(''),comment:'page'}, 
fileName:{type: DataTypes.STRING(100),comment:'导出文件名'}, 
formMod:{type: DataTypes.STRING(50),defaultValue:(''),comment:'保存的表'},
listUrl:{type: DataTypes.STRING(50),defaultValue:(''),comment:'显示 列表的表或视图'}, 
saveUrl:{type: DataTypes.STRING(50),comment:''}, 
delUrl:{type: DataTypes.STRING(50),comment:''}, 
width:{type: DataTypes.INTEGER,comment:''}, 
height:{type: DataTypes.INTEGER,comment:''}, 
sqls:{type: DataTypes.TEXT,comment:''}, 
orderby:{type: DataTypes.STRING(100),comment:'orderby'}, 
detailGrid:{type: DataTypes.STRING(5000),comment:'工具栏'}, 
rowBtn:{type: DataTypes.STRING(1000),comment:'行按钮'}, 
softDel:{type: DataTypes.INTEGER,defaultValue:0,comment:'软删除'}, 
hideCheckbox:{type: DataTypes.INTEGER,comment:''}, 
fields:{type: DataTypes.TEXT,comment:'字段JSON'}, 
cols:{type: DataTypes.STRING(2000),comment:''}, 
groupby:{type: DataTypes.STRING(2000),comment:''},
delLimit:{type: DataTypes.STRING(3000),comment:'删除前检测限制'},
beforeAction:{type: DataTypes.TEXT,comment:'操作前'},
afterAction:{type: DataTypes.TEXT,comment:'操作后'},
    hidePage:{type: DataTypes.INTEGER,comment:''},
    hideFooter:{type: DataTypes.INTEGER,comment:''},
    pageRule:{type: DataTypes.TEXT,comment:''},
}, {
    tableName: 'form_cust_v5',
    timestamps: false,
    comment: '自定义表单',
    indexes:[{"unique":true,"name":"page唯一","fields":["page"]}]
});